//
//  SYNoLabel.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/5/16.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYNoLabel.h"

@implementation SYNoLabel

- (instancetype)initWithNameStr:(NSString *)name contView:(UIView *)conView {
    self = [super init];
    if (self) {
        self.text = @"当前数据为空";
        self.backgroundColor = [UIColor whiteColor];
        self.textAlignment = 1;
        self.hidden = YES;
        [conView addSubview:self];
        [self mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(@0);
            make.right.equalTo(@0);
            make.top.equalTo(@0);
            make.bottom.equalTo(@0);
        }];
    }
    return self;
}

@end
